Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #323 - Make dropdownenum dynamic #324

Conversation

yunusyerli1
Copy link
Contributor

@yunusyerli1 yunusyerli1 commented Aug 18, 2023

Description

checkAndInitAsDynamicEnum(); method has been added to dropdownenum.component #323

Motivation and Context

The status field in the Cases module is showing all values no matter what value is selected in the State field.

How To Test This

In base-field.manifest.ts file change following:
From :
'enum.detail': EnumDetailFieldComponent,
'enum.edit': EnumEditFieldComponent,
To:
'enum.detail': DropdownEnumDetailFieldComponent,
'enum.edit': DropdownEnumEditFieldComponent,
In editview, select State and check Status field. You ll see all values.
Select another value in State, and still you will see all the values

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • My code follows the code style of this project found here.
  • My change requires a change to the documentation.
  • I have read the How to Contribute guidelines.

Copy link
Contributor

@clemente-raposo clemente-raposo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@clemente-raposo clemente-raposo added Status: Requires Testing Status: Passed Code Review Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member labels Aug 21, 2023
@yunusyerli1 yunusyerli1 changed the title Fix #323 make dropdownenum dynamic Fix #323 - Make dropdownenum dynamic Aug 22, 2023
@clemente-raposo
Copy link
Contributor

clemente-raposo commented Sep 13, 2023

@johnM2401 this wasn't merged because it had issues if I'm not mistaken. Correct?

@yunusyerli1 the issue was that the values was not saved on dependent field was not saved. See attached gif made by @johnM2401

savechild

@clemente-raposo clemente-raposo added Status:Requires Updates Issues & PRs which requires input or update from the author Status: Requires Code Review and removed Status: Passed Code Review labels Sep 13, 2023
@johnM2401
Copy link

Hey @clemente-raposo !

Yeah, I believe that's right.

As you say, the child Dynamic Dropdown wouldn't save any values.

@yunusyerli1
Copy link
Contributor Author

I will check this.

@yunusyerli1 yunusyerli1 force-pushed the fix/323_make_dynamic_dropdowns branch from 5ef7edf to 4c2a9ce Compare October 5, 2023 11:35
@yunusyerli1 yunusyerli1 removed the Status:Requires Updates Issues & PRs which requires input or update from the author label Oct 5, 2023
@yunusyerli1
Copy link
Contributor Author

Moved to #382 MR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status:Assessed PRs that have been tested and confirmed to resolve an issue by a core team member Status: Passed Code Review Status: Requires Testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants